define(['jquery'],()=>{
    class Request{
        constructor(){
            this.baseUrl = 'http://quan.lukou.com/api'
        }
        getIndexSugar1(){
           return $.ajax({
                url:'lib/mock.json'
            })
        }
        getIndexSugar2(){
            return $.ajax({
                url:'http://rap2api.taobao.org/app/mock/283088/jay/chou/fanthful'
            })
        }
        getNav(){
            return $.ajax({
                url:this.baseUrl+"/tabs?sa="
            })
        }
        getListData(id){
            return $.ajax({
                url:`${this.baseUrl}/tab/${id}?start=0`
            })
        }
        getListData1(id){
            return $.ajax({
                url:`${this.baseUrl}/tab/6?start=0`
            })
        }
        getDetailsData(id){
            return $.ajax({
                url:`${this.baseUrl}/detail?id=${id}&normal=1&sa=&ignore_source_pid=`
            })
        }
        
    }
    return new Request()
})